import VueRouter from 'vue-router'
import Vue from 'vue'
Vue.use(VueRouter)

const Home = () => import('../pages/index.vue')

const router = new VueRouter({
  base: window.__POWERED_BY_QIANKUN__ ? '/slave/' : '/',
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    }
  ]
})

export default router
